<template>
  
      <!-- tab标签页 -->
    <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
      <el-alert
    :title="`数据一个${counts}条`"
    type="info"
    show-icon
    :closable="false">
  </el-alert>
    <!-- <list></list> -->
  </el-tabs>
</template>

<script>
import List from './list.vue';


export default {
  components: {List},
   props: {
    counts: {
      type: Number,
    },
  },
     data() {
      return {
        activeName: 'first',
        rules:[{}]
      };
    },
    methods: {
      handleClick(tab, event) {
        console.log(tab, event);
      }
    }

}
</script>

<style>

</style>